/** @namespace app.model.DetailAnchorOption */
module.exports = app => {
  const {STRING, INTEGER, DATE, JSON, BOOLEAN} = app.Sequelize;

  const DetailAnchorOption = app.model.define('detail_anchor_option', {
    anchor_id: {type: INTEGER, unique: 'anchor_id', primaryKey: true},
    categories: {type: JSON, defaultValue: []},
  }, {timestamps: false});

  return DetailAnchorOption;
};